package leetcode.code0126;

import java.util.List;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution126 implements IDebug {

	public abstract List<List<String>> findLadders(String beginWord, String endWord, List<String> wordList);

	@Override
	public void debug1() {
		List<List<String>> e = HelpDebug
				.str2intlist2("[[\"hit\",\"hot\",\"dot\",\"dog\",\"cog\"],[\"hit\",\"hot\",\"lot\",\"log\",\"cog\"]]");
		HelpDebug.compare(e,
				this.findLadders("hit", "cog", HelpDebug.str2liststr("[\"hot\",\"dot\",\"dog\",\"lot\",\"log\",\"cog\"]")));
	}

	@Override
	public void debug2() {
		List<List<String>> e = HelpDebug
				.str2intlist2("[]");
		HelpDebug.compare(e,
				this.findLadders("hit", "cog", HelpDebug.str2liststr("[\"hot\",\"dot\",\"dog\",\"lot\",\"log\"]")));
	}

	@Override
	public void debug3() {
		List<List<String>> e = HelpDebug
				.str2intlist2("[[\"red\",\"ted\",\"tad\",\"tax\"],[\"red\",\"ted\",\"tex\",\"tax\"],[\"red\",\"rex\",\"tex\",\"tax\"]]");
		HelpDebug.compare(e,
				this.findLadders("red", "tax", HelpDebug.str2liststr("[\"ted\",\"tex\",\"red\",\"tax\",\"tad\",\"den\",\"rex\",\"pee\"]")));
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
